package com.shixun.milktea.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author zrs
 * @since 2022-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_order")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "order_id", type = IdType.AUTO)
    @ApiModelProperty(value = "订单编号")
    private Integer orderId;

    @ApiModelProperty(value = "订单状态：待处理1；准备中2；已出单3；退货4")
    private String orderStatus;

    @ApiModelProperty(value = "订单备注")
    private String orderMsg;

    /*
     * 消费者信息
     */
    private Consumer consumer;

    @ApiModelProperty(value = "订单收货地址")
    private String orderAddress;

    @ApiModelProperty(value = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderTime;
    /*
     * 订单明细
     */
    private List<Orderdetail> orderdetails;
}
